package com.sinochem.yunlian.ship.base.biz;

import com.sinochem.yunlian.ship.base.entity.BsVersion;
import com.sinochem.yunlian.ship.base.mapper.BsVersionMapper;
import com.sinochem.yunlian.ship.common.biz.BaseBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Auther: wanghui
 * @Dscription: 版本更新
 * @Date: Created in 11:21 2017/12/26
 **/
@Service
@Transactional
public class BsVersionBiz extends BaseBiz<BsVersionMapper,BsVersion> {

    @Autowired
    private BsVersionMapper bsVersionMapper;

    /**
     * @Auther: wanghui
     * @Dscription: 根据 appId 获取版本信息
     * @Date: Created in 11:21 2017/12/26
     **/
    public BsVersion getBsVersionByAppId(String appId){
        return bsVersionMapper.getVersionInfoByAppId(appId);
    }
}
